/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 68 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 = 7271
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1249.8+3707_daily_bin327
RA = 192.46, Dec = 37.1306
tmin = 324086401, tmax = 324345601
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='935804', job_status='RUN', time_executed='2021-09-06 06:32:16.189501', time_epoch_executed='1630935136.19' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='327'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935804

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935804/ft1_4FGL_J1249.8+3707_daily_bin327.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935804/ft2_4FGL_J1249.8+3707_daily_bin327.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935804/ft1_4FGL_J1249.8+3707_daily_bin327.fits outfile=/scratch/kocevski/935804/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin327.fits ra=192.46 dec=37.1306 rad=12.0 tmin=324086401.0 tmax=324345601.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.31
user 4.04
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/935804/ft1_filtered_4FGL_J1249.8+3707_daily_bin327.fits" evtable="EVENTS" scfile=/scratch/kocevski/935804/ft2_4FGL_J1249.8+3707_daily_bin327.fits sctable="SC_DATA" outfile=/scratch/kocevski/935804/ltcube_324086401_324345601_4FGL_J1249.8+3707_daily_bin327.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/935804/ft2_4FGL_J1249.8+3707_daily_bin327.fits
.....................!
real 12.35
user 11.95
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935804/ft1_filtered_4FGL_J1249.8+3707_daily_bin327.fits evtable="EVENTS" scfile=/scratch/kocevski/935804/ft2_4FGL_J1249.8+3707_daily_bin327.fits sctable="SC_DATA" expcube=/scratch/kocevski/935804/ltcube_324086401_324345601_4FGL_J1249.8+3707_daily_bin327.fits outfile=/scratch/kocevski/935804/expmap_324086401_324345601_4FGL_J1249.8+3707_daily_bin327.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/935804/ltcube_324086401_324345601_4FGL_J1249.8+3707_daily_bin327.fits
.....................!
real 191.89
user 186.28
sys 5.21

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/935804/ft1_filtered_4FGL_J1249.8+3707_daily_bin327.fits scfile=/scratch/kocevski/935804/ft2_4FGL_J1249.8+3707_daily_bin327.fits outfile=/scratch/kocevski/935804/cmap_324086401_324345601_4FGL_J1249.8+3707_daily_bin327.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/935804/ft1_filtered_4FGL_J1249.8+3707_daily_bin327.fits scfile=/scratch/kocevski/935804/ft2_4FGL_J1249.8+3707_daily_bin327.fits outfile=/scratch/kocevski/935804/cmap_HighResolution_324086401_324345601_4FGL_J1249.8+3707_daily_bin327.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.54
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.853       1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.079       1.0000         .10000E-03   10000.    
     3 'norm      '    8.3296       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3662       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.5376       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.8997       1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.622       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6519       1.0000         .10000E-03   10000.    
    12 'norm      '    10.610       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .34746E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.0374       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.4067       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.8452       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    141.54       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0278       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .92954       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=   5671.127     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     3092 TOTAL
                     EDM=   .34E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.851        41.402        .19043E-06   -.10659E-04
   2  Prefactor     21.083        27.264        .19696E-06    .27891E-05
   3  norm          8.3299        3.4857        .96409E-08    .85471E-05
   4  Prefactor     1.3646        5.0169        .17444E-05    .27132E-04
   5  Prefactor     2.5375        2.0170       -.11615E-07   -.19227E-04
   6  Prefactor     .10000E-03    1.2570       -.29863E-07** at limit **
   7  Prefactor     5.9003        7.2587        .13380E-05    .50043E-05
   8  Prefactor     27.623        23.424        .24000E-07    .29978E-05
   9  Prefactor     .10000E-03    5.1784        .17489E-07** at limit **
  10  Prefactor     .10000E-03    56.541        .31475E-07** at limit **
  11  Prefactor     3.6519        3.5334       -.41273E-07   -.71833E-04
  12  norm          10.609        6.7981        .96494E-07   -.24759E-04
  13  Prefactor     .10002E-03    400.74       -.95192E-05** at limit **
  14  Prefactor     9.0418        26.739        .36844E-06    .73665E-05
  15  Prefactor     .10000E-03    9.7968        .21830E-06** at limit **
  16  norm          2.4066        3.8422        .26094E-06    .79782E-04
  17  norm          .10000E-03    8.1470       -.99842E-07** at limit **
  18  norm          .10000E-03    1.3939        .33905E-07** at limit **
  19  norm          .10000E-03    2.0470        .99835E-08** at limit **
  20  Prefactor     2.8451        2.9254        .18188E-06   -.23152E-04
  21  Prefactor     .10000E-03    4.9259       -.25422E-07** at limit **
  22  Prefactor     .10000E-03    31.261        .22889E-08** at limit **
  23  Prefactor     .10000E-03    11.105       -.39860E-07** at limit **
  24  Prefactor     141.54        85.498        .50072E-06    .13336E-04
  25  Normalizat    1.0277        .17663       -.11341E-05    .34104E-05
  26  Prefactor     .92974        .21244       -.14814E-06   -.41674E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.8512
  Prefactor  = 21.0828
  norm       = 8.32988
  Prefactor  = 1.36464
  Prefactor  = 2.53752
  Prefactor  = 0.0001
  Prefactor  = 5.90032
  Prefactor  = 27.6228
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.65194
  norm       = 10.6093
  Prefactor  = 0.000100017
  Prefactor  = 9.04183
  Prefactor  = 0.0001
  norm       = 2.40659
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.84514
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 141.544
  Normalizat = 1.02768
  Prefactor  = 0.929739
 **********
 **   18 **HESSE 
 **********

 FCN=   5671.127     FROM HESSE     STATUS=OK           460 CALLS     3552 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.851        41.406        .66930E-04   -1.4510    
   2  Prefactor     21.083        27.259        .87240E-04   -1.4789    
   3  norm          8.3299        3.4801        .84999E-04   -1.5131    
   4  Prefactor     1.3646        5.0195        .31483E-03   -1.5474    
   5  Prefactor     2.5375        2.0199        .89686E-04   -1.5389    
   6  Prefactor     .10000E-03    2.1834        .16259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.9003        7.2632        .82665E-03   -1.5222    
   8  Prefactor     27.623        23.445        .76226E-04   -1.4656    
   9  Prefactor     .10000E-03    5.1800        .16738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    56.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.6519        3.5415        .13546E-03   -1.5326    
  12  norm          10.609        6.7675        .12300E-03   -1.5056    
  13  Prefactor     .10002E-03    417.98        .42653E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.0418        26.627        .13332E-03   -1.5106    
  15  Prefactor     .10000E-03    9.8663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.4066        3.8199        .17907E-03   -1.5398    
  17  norm          .10000E-03    8.1630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.4022        .86731E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.0502        .10521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.8451        2.9098        .12388E-03   -1.5371    
  21  Prefactor     .10000E-03    4.9396        .16317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    31.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    11.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     141.54        85.731        .33863E-04   -1.3323    
  25  Normalizat    1.0277        .20883        .22580E-03   -.92109    
  26  Prefactor     .92974        .25312        .29480E-03   -.95110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.75896e-11
Minuit parameter uncertainties:
  1  41.4392
  2  27.2749
  3  3.48019
  4  5.02103
  5  2.01994
  6  1.58753e-06
  7  7.26424
  8  23.4523
  9  4.52012e-06
  10  3.27822e-05
  11  3.5417
  12  6.76798
  13  0.00533632
  14  26.6624
  15  3.12325e-05
  16  3.82025
  17  1.49817e-06
  18  4.05963e-07
  19  1.46903e-07
  20  2.90993
  21  2.30773e-06
  22  5.12807e-06
  23  1.00069e-05
  24  85.8068
  25  0.208999
  26  0.253439
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  4.520e-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:  9.297e-01  2.534e-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:  1.028e+00  2.090e-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: 2.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/935804/likelihoodResults_324086401_324345601_4FGL_J1249.8+3707_daily_bin327.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) = 5671.12766502
delta logL = -0.000901551811694

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5671.1267639
delta logL = -4.37043127022e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7503       1.0000          .0000       10.000    
     3 'Normalizat'    1.0279       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92944       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=   5671.127     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      243 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10445E-03    1.1763        .17320E-01** at limit **
   2  Index         1.6252        5.2881        .50000        .29691E-04
   3  Normalizat    1.0277        .18174E-02    .22580E-03   -.16112E-05
   4  Prefactor     .92974        .22781E-02    .29480E-03   -.10798E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104452
  Index      = 1.62519
  Normalizat = 1.02768
  Prefactor  = 0.92974
 **********
 **   18 **HESSE 
 **********

 FCN=   5671.127     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10445E-03    64.273        .18188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6252        9.1831        .50000       -.74091    
   3  Normalizat    1.0277        .13589E-01    .90319E-05   -.92109    
   4  Prefactor     .92974        .17033E-01    .11792E-04   -.95109    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.69612e-08
Minuit parameter uncertainties:
  1  0.0338663
  2  338.96
  3  0.013589
  4  0.0170326
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935804': 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) = 5671.12676235
delta logL = 1.11564986582e-06

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.045e-04  3.387e-02  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.625e+00  3.390e+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:  9.297e-01  1.703e-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:  1.028e+00  1.359e-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/935804/cmap_HighResolution_324086401_324345601_4FGL_J1249.8+3707_daily_bin327.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.98e-03', job_status='DONE', photon_flux_upper_limit='2.69e-08', time_completed='2021-09-06 06:45:00.119519', job_id='935804', GAL2='0.93', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1630935900.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.12e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='327' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:45:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0155>
Subject: Job 935804: <4FGL_J1249.8+3707_daily_bin327> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin327> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 06:30:53 2021
Job was executed on host(s) <bullet0155>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:30:54 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:54 2021
Terminated at Mon Sep  6 06:45:03 2021
Results reported at Mon Sep  6 06:45:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin327 192.46 37.1306 324086401 324345601 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 :                                   741.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             310.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            850 sec.

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

