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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin807
RA = 192.46, Dec = 37.1306
tmin = 448502401, tmax = 448761601
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='938738', job_status='RUN', time_executed='2021-09-06 06:43:19.446880', time_epoch_executed='1630935799.45' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='807'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938738

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938738/ft1_4FGL_J1249.8+3707_daily_bin807.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938738/ft2_4FGL_J1249.8+3707_daily_bin807.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938738/ft1_4FGL_J1249.8+3707_daily_bin807.fits outfile=/scratch/kocevski/938738/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin807.fits ra=192.46 dec=37.1306 rad=12.0 tmin=448502401.0 tmax=448761601.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.98
user 5.73
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/938738/ft1_filtered_4FGL_J1249.8+3707_daily_bin807.fits" evtable="EVENTS" scfile=/scratch/kocevski/938738/ft2_4FGL_J1249.8+3707_daily_bin807.fits sctable="SC_DATA" outfile=/scratch/kocevski/938738/ltcube_448502401_448761601_4FGL_J1249.8+3707_daily_bin807.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/938738/ft2_4FGL_J1249.8+3707_daily_bin807.fits
.....................!
real 11.64
user 11.24
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938738/ft1_filtered_4FGL_J1249.8+3707_daily_bin807.fits evtable="EVENTS" scfile=/scratch/kocevski/938738/ft2_4FGL_J1249.8+3707_daily_bin807.fits sctable="SC_DATA" expcube=/scratch/kocevski/938738/ltcube_448502401_448761601_4FGL_J1249.8+3707_daily_bin807.fits outfile=/scratch/kocevski/938738/expmap_448502401_448761601_4FGL_J1249.8+3707_daily_bin807.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/938738/ltcube_448502401_448761601_4FGL_J1249.8+3707_daily_bin807.fits
.....................!
real 191.27
user 185.44
sys 5.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/938738/ft1_filtered_4FGL_J1249.8+3707_daily_bin807.fits scfile=/scratch/kocevski/938738/ft2_4FGL_J1249.8+3707_daily_bin807.fits outfile=/scratch/kocevski/938738/cmap_448502401_448761601_4FGL_J1249.8+3707_daily_bin807.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.16
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/938738/ft1_filtered_4FGL_J1249.8+3707_daily_bin807.fits scfile=/scratch/kocevski/938738/ft2_4FGL_J1249.8+3707_daily_bin807.fits outfile=/scratch/kocevski/938738/cmap_HighResolution_448502401_448761601_4FGL_J1249.8+3707_daily_bin807.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.60
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    60.112       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.765       1.0000         .10000E-03   10000.    
     3 'norm      '    13.818       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10678E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.617       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.9009       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    36.181       1.0000         .10000E-03   10000.    
    17 'norm      '    12.864       1.0000         .10000E-03   10000.    
    18 'norm      '    6.2393       1.0000         .10000E-03   10000.    
    19 'norm      '    .11585E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.1034       1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.136       1.0000         .10000E-03   10000.    
    22 'Prefactor '    74.724       1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.553       1.0000         .10000E-03   10000.    
    24 'Prefactor '    31.182       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .61373       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2870       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=   3455.497     FROM MIGRAD    STATUS=CONVERGED    605 CALLS     3140 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     60.110        65.383       -.17159E-06    .25582E-06
   2  Prefactor     12.765        33.529        .25440E-07    .65135E-06
   3  norm          13.822        5.4167       -.55952E-07    .17329E-03
   4  Prefactor     .10000E-03    4.8481        .12380E-06** at limit **
   5  Prefactor     .10000E-03    2.0052        .35233E-07** at limit **
   6  Prefactor     .10000E-03    3.0350        .12150E-07** at limit **
   7  Prefactor     32.623        16.239        .31153E-07    .61231E-04
   8  Prefactor     .10000E-03    15.196       -.46358E-06** at limit **
   9  Prefactor     .10000E-03    11.847        .14496E-06** at limit **
  10  Prefactor     .10000E-03    32.528       -.94578E-06** at limit **
  11  Prefactor     .10000E-03    3.6885        .12635E-07** at limit **
  12  norm          2.9010        2.9475       -.20115E-07    .69081E-04
  13  Prefactor     .10000E-03    26.254        .12159E-05** at limit **
  14  Prefactor     .10000E-03    8.3170        .13209E-08** at limit **
  15  Prefactor     .10000E-03    12.054        .46183E-07** at limit **
  16  norm          36.177        12.341        .81350E-07    .26991E-04
  17  norm          12.863        16.423       -.12080E-07   -.52339E-05
  18  norm          6.2279        4.2891        .11347E-05    .66788E-03
  19  norm          .10002E-03    11.780       -.34025E-05** at limit **
  20  Prefactor     1.1060        3.5419        .18429E-06    .59140E-04
  21  Prefactor     15.132        18.264        .16430E-06    .13882E-04
  22  Prefactor     74.686        98.836       -.30232E-05   -.12874E-04
  23  Prefactor     19.553        24.082       -.23288E-07    .34523E-05
  24  Prefactor     31.181        93.701       -.12401E-06    .16368E-06
  25  Normalizat    .61374        .22286        .69912E-07    .43799E-04
  26  Prefactor     1.2871        .28170        .16758E-06    .71999E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 60.1101
  Prefactor  = 12.7652
  norm       = 13.8221
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.623
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.90098
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 36.1772
  norm       = 12.8628
  norm       = 6.22787
  norm       = 0.000100022
  Prefactor  = 1.10597
  Prefactor  = 15.1325
  Prefactor  = 74.6864
  Prefactor  = 19.5527
  Prefactor  = 31.1808
  Normalizat = 0.613736
  Prefactor  = 1.28706
 **********
 **   18 **HESSE 
 **********

 FCN=   3455.497     FROM HESSE     STATUS=OK           452 CALLS     3592 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     60.110        65.390        .51749E-04   -1.4156    
   2  Prefactor     12.765        33.522        .11211E-03   -1.4993    
   3  norm          13.822        5.2919        .80281E-04   -1.4964    
   4  Prefactor     .10000E-03    4.8610        .12636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.0172        .80991E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.7532        .19299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     32.623        16.166        .70161E-04   -1.4565    
   8  Prefactor     .10000E-03    15.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    32.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.6964        .11025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.9010        2.9562        .99193E-04   -1.5367    
  13  Prefactor     .10000E-03    26.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.3195        .16558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          36.177        12.304        .66627E-04   -1.4504    
  17  norm          12.863        16.425        .11168E-03   -1.4991    
  18  norm          6.2279        4.5878        .10328E-03   -1.5209    
  19  norm          .10002E-03    30.611        .33913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.1060        3.4042        .17845E-03   -1.5498    
  21  Prefactor     15.132        18.091        .10295E-03   -1.4930    
  22  Prefactor     74.686        98.675        .46448E-04   -1.3977    
  23  Prefactor     19.553        24.078        .90578E-04   -1.4823    
  24  Prefactor     31.181        94.131        .71754E-04   -1.4591    
  25  Normalizat    .61374        .26489        .28716E-03   -1.0740    
  26  Prefactor     1.2871        .33625        .26413E-03   -.83693    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.28892e-10
Minuit parameter uncertainties:
  1  65.468
  2  33.5719
  3  5.29212
  4  5.14806e-06
  5  2.45143e-06
  6  1.81264e-05
  7  16.1678
  8  1.29493e-05
  9  3.22212e-06
  10  2.71119e-05
  11  2.80954e-06
  12  2.95636
  13  1.41034e-05
  14  1.26772e-06
  15  4.10874e-06
  16  12.3053
  17  16.4308
  18  4.58807
  19  0.00164341
  20  3.40482
  21  18.098
  22  98.8925
  23  24.0899
  24  94.5838
  25  0.265441
  26  0.336822
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  3.222e-06  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.287e+00  3.368e-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.137e-01  2.654e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/938738/likelihoodResults_448502401_448761601_4FGL_J1249.8+3707_daily_bin807.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): 102
logL (Free Index) = 3455.49690701
delta logL = -0.000397277661705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3455.4965097
delta logL = 3.8688085624e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10413E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7433       1.0000          .0000       10.000    
     3 'Normalizat'    .61379       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2870       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=   3455.497     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      249 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10176E-03    80.053        .18142E-02** at limit **
   2  Index         1.6786        5.3194        .50000        .18066E-04
   3  Normalizat    .61373        .12943E-01    .28716E-03   -.12795E-03
   4  Prefactor     1.2871        .16768E-01    .26413E-03   -.94046E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101765
  Index      = 1.67858
  Normalizat = 0.613733
  Prefactor  = 1.28706
 **********
 **   18 **HESSE 
 **********

 FCN=   3455.497     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10176E-03    366.16        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6786        7.5755        .50000       -.72654    
   3  Normalizat    .61373        .28471E-01    .11487E-04   -1.0740    
   4  Prefactor     1.2871        .36881E-01    .10565E-04   -.83693    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.12061e-08
Minuit parameter uncertainties:
  1  0.0511549
  2  418.575
  3  0.0284713
  4  0.0368815
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938738': 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): 102
logL (Free Index) = 3455.49650924
delta logL = 4.94889263791e-07

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.018e-04  5.115e-02  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.679e+00  4.186e+02  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.287e+00  3.688e-02  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.137e-01  2.847e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 192.460 37.131

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/938738/cmap_HighResolution_448502401_448761601_4FGL_J1249.8+3707_daily_bin807.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.92e-03', job_status='DONE', photon_flux_upper_limit='5.33e-08', time_completed='2021-09-06 06:53:14.699069', job_id='938738', GAL2='1.29', fit_tolerance='1e-08', EG2='0.61', EG='0.61', time_epoch_completed='1630936394.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='4.95e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='807' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:53:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 938738: <4FGL_J1249.8+3707_daily_bin807> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin807> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 06:40:32 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:40:33 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:33 2021
Terminated at Mon Sep  6 06:53:15 2021
Results reported at Mon Sep  6 06:53:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin807 192.46 37.1306 448502401 448761601 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 :                                   585.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             239.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            763 sec.

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

