/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 184 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 = 7393
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1249.8+3707_daily_bin307
RA = 192.46, Dec = 37.1306
tmin = 318902401, tmax = 319161601
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='935781', job_status='RUN', time_executed='2021-09-06 06:34:05.114894', time_epoch_executed='1630935245.11' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='307'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935781

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935781/ft1_4FGL_J1249.8+3707_daily_bin307.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935781/ft2_4FGL_J1249.8+3707_daily_bin307.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935781/ft1_4FGL_J1249.8+3707_daily_bin307.fits outfile=/scratch/kocevski/935781/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin307.fits ra=192.46 dec=37.1306 rad=12.0 tmin=318902401.0 tmax=319161601.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.40
user 3.17
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/935781/ft2_4FGL_J1249.8+3707_daily_bin307.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/935781/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin307.fits evtable="EVENTS" outfile="/scratch/kocevski/935781/ft1_filtered_4FGL_J1249.8+3707_daily_bin307.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/935781/ft1_filtered_4FGL_J1249.8+3707_daily_bin307.fits" evtable="EVENTS" scfile=/scratch/kocevski/935781/ft2_4FGL_J1249.8+3707_daily_bin307.fits sctable="SC_DATA" outfile=/scratch/kocevski/935781/ltcube_318902401_319161601_4FGL_J1249.8+3707_daily_bin307.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/935781/ft2_4FGL_J1249.8+3707_daily_bin307.fits
.....................!
real 11.77
user 11.45
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935781/ft1_filtered_4FGL_J1249.8+3707_daily_bin307.fits evtable="EVENTS" scfile=/scratch/kocevski/935781/ft2_4FGL_J1249.8+3707_daily_bin307.fits sctable="SC_DATA" expcube=/scratch/kocevski/935781/ltcube_318902401_319161601_4FGL_J1249.8+3707_daily_bin307.fits outfile=/scratch/kocevski/935781/expmap_318902401_319161601_4FGL_J1249.8+3707_daily_bin307.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/935781/ltcube_318902401_319161601_4FGL_J1249.8+3707_daily_bin307.fits
.....................!
real 190.78
user 185.93
sys 4.46

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/935781/ft1_filtered_4FGL_J1249.8+3707_daily_bin307.fits scfile=/scratch/kocevski/935781/ft2_4FGL_J1249.8+3707_daily_bin307.fits outfile=/scratch/kocevski/935781/cmap_318902401_319161601_4FGL_J1249.8+3707_daily_bin307.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.40
sys 0.12

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.997       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10294E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.8263       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.3892       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.904       1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.562       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.3472       1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.389       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.1711       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.3016       1.0000         .10000E-03   10000.    
    16 'norm      '    8.3383       1.0000         .10000E-03   10000.    
    17 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.3783       1.0000         .10000E-03   10000.    
    19 'norm      '    .10740E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11128E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.993       1.0000         .10000E-03   10000.    
    23 'Prefactor '    53.353       1.0000         .10000E-03   10000.    
    24 'Prefactor '    103.12       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .70390       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0532       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5968.202     FROM MIGRAD    STATUS=CONVERGED     80 CALLS     2572 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.996        1.0313       -.19347E-06    .68997E-03
   2  Prefactor     .10000E-03    58.053       -.34543E-05** at limit **
   3  norm          8.8259        3.3872        .73982E-06   -.14140E-04
   4  Prefactor     .10000E-03    2.9269       -.23024E-06** at limit **
   5  Prefactor     5.3891        2.4750       -.38147E-06   -.48613E-03
   6  Prefactor     .10000E-03    1.3939       -.33329E-06** at limit **
   7  Prefactor     15.904        1.0042        .45837E-07   -.88467E-04
   8  Prefactor     27.563        1.0177        .12959E-06   -.63258E-03
   9  Prefactor     9.3586        1.5264       -.12882E-05    .18393E-02
  10  Prefactor     22.378        2.5587       -.17591E-05    .77357E-02
  11  Prefactor     .10001E-03    9.2006       -.15740E-04** at limit **
  12  norm          7.1714        1.5034       -.12142E-05   -.28491E-02
  13  Prefactor     .10002E-03    10.023        .16873E-05** at limit **
  14  Prefactor     .10000E-03    4.4403       -.62779E-05** at limit **
  15  Prefactor     6.3272        2.3009       -.15788E-05    .14303E-02
  16  norm          8.3376        1.1650       -.59858E-06   -.12127E-02
  17  norm          .10001E-03    10.215        .56666E-05** at limit **
  18  norm          6.3806        3.3931        .49412E-06    .81434E-03
  19  norm          .10000E-03    3.5640        .32135E-05** at limit **
  20  Prefactor     .10000E-03    4.2499        .78189E-06** at limit **
  21  Prefactor     .10000E-03    7.9666        .16078E-04** at limit **
  22  Prefactor     12.995        1.1647        .56643E-06   -.14418E-02
  23  Prefactor     53.353        1.0049        .45394E-07   -.39153E-03
  24  Prefactor     103.12        1.0046        .34594E-07   -.70054E-03
  25  Normalizat    .70381        .18218       -.12045E-06   -.31184E-03
  26  Prefactor     1.0533        .23245        .67245E-06   -.21115E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.9957
  Prefactor  = 0.000100002
  norm       = 8.82589
  Prefactor  = 0.0001
  Prefactor  = 5.38913
  Prefactor  = 0.0001
  Prefactor  = 15.9035
  Prefactor  = 27.5628
  Prefactor  = 9.35864
  Prefactor  = 22.3785
  Prefactor  = 0.000100006
  norm       = 7.17144
  Prefactor  = 0.000100017
  Prefactor  = 0.000100005
  Prefactor  = 6.32724
  norm       = 8.33765
  norm       = 0.000100006
  norm       = 6.38059
  norm       = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 12.9953
  Prefactor  = 53.3531
  Prefactor  = 103.118
  Normalizat = 0.703807
  Prefactor  = 1.05334
 **********
 **   18 **HESSE 
 **********

 FCN=   5968.202     FROM HESSE     STATUS=OK           528 CALLS     3100 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.996        40.033        .23603E-02   -1.4859    
   2  Prefactor     .10000E-03    58.318        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.8259        3.3961        .33729E-02   -1.5114    
   4  Prefactor     .10000E-03    2.9167        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.3891        2.4797        .43276E-02   -1.5244    
   6  Prefactor     .10000E-03    1.3458        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.904        10.681        .25108E-02   -1.4910    
   8  Prefactor     27.563        25.271        .19077E-02   -1.4657    
   9  Prefactor     9.3586        14.362        .32771E-02   -1.5096    
  10  Prefactor     22.378        66.405        .21163E-02   -1.4761    
  11  Prefactor     .10001E-03    5.0442        .52334E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.1714        4.6615        .37448E-02   -1.5172    
  13  Prefactor     .10002E-03    19.746        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.0952        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.3272        16.646        .39976E-02   -1.5205    
  16  norm          8.3376        6.1800        .34708E-02   -1.5130    
  17  norm          .10001E-03    19.723        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.3806        3.6276        .39732E-02   -1.5203    
  19  norm          .10000E-03    7.0815        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.9692        .33897E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.7978        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     12.995        38.737        .27781E-02   -1.4987    
  23  Prefactor     53.353        21.273        .13728E-02   -1.4246    
  24  Prefactor     103.12        67.489        .98990E-03   -1.3674    
  25  Normalizat    .70381        .15903        .42343E-01   -1.0374    
  26  Prefactor     1.0533        .19699        .59644E-01   -.90972    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27398e-06
Minuit parameter uncertainties:
  1  40.0927
  2  0.000746304
  3  3.39619
  4  1.98666e-05
  5  2.47971
  6  5.96117e-06
  7  10.6828
  8  25.2807
  9  14.3672
  10  66.6256
  11  0.0003456
  12  4.66177
  13  0.00114451
  14  0.000376384
  15  16.6585
  16  6.18052
  17  0.000705342
  18  3.62776
  19  0.00034068
  20  2.40227e-05
  21  0.000279871
  22  38.8125
  23  21.2758
  24  67.5396
  25  0.159129
  26  0.197128
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  9.359e+00  1.437e+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.053e+00  1.971e-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:  7.038e-01  1.591e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/935781/likelihoodResults_318902401_319161601_4FGL_J1249.8+3707_daily_bin307.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) = 5967.92792667
delta logL = 0.274320236719

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5967.9233442
delta logL = 0.278902708468

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9062       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3739       1.0000          .0000       10.000    
     3 'Normalizat'    .69515       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0565       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5967.923     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      276 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9032        152.02        .51034E-02    .25572E-03
   2  Index         2.3746        3.2871        .10052        .15896E-03
   3  Normalizat    .69510        .55397E-01    .42226E-01    .20156E-04
   4  Prefactor     1.0566        .64780E-01    .59539E-01    .74890E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.90325
  Index      = 2.37461
  Normalizat = 0.695103
  Prefactor  = 1.0566
 **********
 **   18 **HESSE 
 **********

 FCN=   5967.923     FROM HESSE     STATUS=OK            33 CALLS      309 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9032        12.801        .16877E-03   -1.5313    
   2  Index         2.3746        1.1969        .60112E-02   -.55281    
   3  Normalizat    .69510        .18174        .24906E-03   -1.0409    
   4  Prefactor     1.0566        .23276        .26329E-03   -.90866    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26737e-08
Minuit parameter uncertainties:
  1  12.8101
  2  1.21322
  3  0.181901
  4  0.232987
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935781': 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) = 5967.92334327
delta logL = 0.278903638994

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  3.903e+00  1.281e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  2.375e+00  1.213e+00  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.057e+00  2.330e-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:  6.951e-01  1.819e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.23
Ra Dec: 192.460 37.131
Photon Index (Free Index): 2.37 +/- 1.21
Photon Flux (Free Index): 1.82e-08 +/- 2.29e-08
Energy Flux (Free Index): 6.18e-06 +/- 1.00e-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/935781/cmap_HighResolution_318902401_319161601_4FGL_J1249.8+3707_daily_bin307.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.32e-03', comment='SUCCESS', energy_flux2='6.18e-06', dlogl='2.79e-01', photon_flux2='1.82e-08', job_status='DONE', time_completed='2021-09-06 06:46:04.152480', photon_index_error2='1.21', photon_index2='2.37', ts='0.68', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='4.51e-08', energy_flux_error2='1.00e-05', EG='0.70', time_epoch_completed='1630935964.15', return_code='0', job_id='935781', GAL2='1.06', EG2='0.70', return_code2='0', photon_flux_error2='2.29e-08', ts2='1.23', photon_index='1.78' WHERE bin_id='307' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:46:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 935781: <4FGL_J1249.8+3707_daily_bin307> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin307> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 06:30:50 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:30:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 06:30:52 2021
Terminated at Mon Sep  6 06:46:04 2021
Results reported at Mon Sep  6 06:46:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin307 192.46 37.1306 318902401 319161601 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 :                                   718.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             250.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            914 sec.

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

