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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin547
RA = 192.46, Dec = 37.1306
tmin = 381110401, tmax = 381369601
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='937227', job_status='RUN', time_executed='2021-09-06 06:38:26.724759', time_epoch_executed='1630935506.72' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='547'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937227

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937227/ft1_4FGL_J1249.8+3707_daily_bin547.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937227/ft2_4FGL_J1249.8+3707_daily_bin547.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937227/ft1_4FGL_J1249.8+3707_daily_bin547.fits outfile=/scratch/kocevski/937227/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin547.fits ra=192.46 dec=37.1306 rad=12.0 tmin=381110401.0 tmax=381369601.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.68
user 4.42
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/937227/ft1_filtered_4FGL_J1249.8+3707_daily_bin547.fits" evtable="EVENTS" scfile=/scratch/kocevski/937227/ft2_4FGL_J1249.8+3707_daily_bin547.fits sctable="SC_DATA" outfile=/scratch/kocevski/937227/ltcube_381110401_381369601_4FGL_J1249.8+3707_daily_bin547.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/937227/ft2_4FGL_J1249.8+3707_daily_bin547.fits
.....................!
real 12.40
user 11.87
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937227/ft1_filtered_4FGL_J1249.8+3707_daily_bin547.fits evtable="EVENTS" scfile=/scratch/kocevski/937227/ft2_4FGL_J1249.8+3707_daily_bin547.fits sctable="SC_DATA" expcube=/scratch/kocevski/937227/ltcube_381110401_381369601_4FGL_J1249.8+3707_daily_bin547.fits outfile=/scratch/kocevski/937227/expmap_381110401_381369601_4FGL_J1249.8+3707_daily_bin547.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/937227/ltcube_381110401_381369601_4FGL_J1249.8+3707_daily_bin547.fits
.....................!
real 193.35
user 187.84
sys 4.75

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/937227/ft1_filtered_4FGL_J1249.8+3707_daily_bin547.fits scfile=/scratch/kocevski/937227/ft2_4FGL_J1249.8+3707_daily_bin547.fits outfile=/scratch/kocevski/937227/cmap_381110401_381369601_4FGL_J1249.8+3707_daily_bin547.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/937227/ft1_filtered_4FGL_J1249.8+3707_daily_bin547.fits scfile=/scratch/kocevski/937227/ft2_4FGL_J1249.8+3707_daily_bin547.fits outfile=/scratch/kocevski/937227/cmap_HighResolution_381110401_381369601_4FGL_J1249.8+3707_daily_bin547.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.59
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.899       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .20258E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.5787       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.2118       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2198       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2726       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11270E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13307       1.0000         .10000E-03   10000.    
    12 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10480E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.9078       1.0000         .10000E-03   10000.    
    16 'norm      '    2.4231       1.0000         .10000E-03   10000.    
    17 'norm      '    .10138E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.4888       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.003       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.8254       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0489       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .82897       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=   5455.395     FROM MIGRAD    STATUS=CONVERGED    618 CALLS     3076 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.962        41.489        .52440E-04   -.14546E-05
   2  Prefactor     .10000E-03    129.41        .13525E-04** at limit **
   3  norm          7.5796        3.7936        .13283E-06   -.80290E-04
   4  Prefactor     8.2142        12.481       -.36706E-05   -.15234E-03
   5  Prefactor     3.2198        2.1758        .43046E-07    .10802E-03
   6  Prefactor     2.2712        3.0312       -.20558E-06   -.63335E-03
   7  Prefactor     .10000E-03    8.6746        .21973E-07** at limit **
   8  Prefactor     .10000E-03    14.944        .14917E-05** at limit **
   9  Prefactor     .10000E-03    12.815        .42871E-06** at limit **
  10  Prefactor     .10000E-03    41.492        .80170E-05** at limit **
  11  Prefactor     .10169        7.1561        .36117E-06   -.11578E-03
  12  norm          .10000E-03    1.9870       -.64804E-07** at limit **
  13  Prefactor     .10000E-03    51.453       -.22681E-04** at limit **
  14  Prefactor     .10000E-03    63.089        .20394E-04** at limit **
  15  Prefactor     4.8970        23.108       -.65169E-05   -.17679E-03
  16  norm          2.4257        5.3033        .31134E-05   -.56427E-03
  17  norm          .10000E-03    4.6274        .14494E-06** at limit **
  18  norm          7.4883        4.3856       -.10936E-05   -.64112E-03
  19  norm          .10000E-03    2.0401        .23847E-06** at limit **
  20  Prefactor     .10000E-03    1.1148       -.34268E-07** at limit **
  21  Prefactor     .10000E-03    4.8017        .18755E-06** at limit **
  22  Prefactor     .10000E-03    14.987       -.26400E-05** at limit **
  23  Prefactor     9.9923        14.318       -.14711E-06   -.19457E-04
  24  Prefactor     4.8146        181.14       -.32936E-04   -.25851E-05
  25  Normalizat    1.0487        .17731        .26993E-05   -.38010E-03
  26  Prefactor     .82907        .20430       -.37063E-05    .23500E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.9623
  Prefactor  = 0.0001
  norm       = 7.57961
  Prefactor  = 8.21419
  Prefactor  = 3.21984
  Prefactor  = 2.27124
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.101692
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.89701
  norm       = 2.42566
  norm       = 0.0001
  norm       = 7.48831
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.99233
  Prefactor  = 4.81457
  Normalizat = 1.04872
  Prefactor  = 0.829067
 **********
 **   18 **HESSE 
 **********

 FCN=   5455.395     FROM HESSE     STATUS=OK           462 CALLS     3538 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.962        41.403        .89787E-04   -1.4814    
   2  Prefactor     .10000E-03    131.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.5796        3.7864        .91840E-04   -1.5157    
   4  Prefactor     8.2142        12.524        .13990E-03   -1.5135    
   5  Prefactor     3.2198        2.1803        .83533E-04   -1.5349    
   6  Prefactor     2.2712        3.0066        .13592E-03   -1.5407    
   7  Prefactor     .10000E-03    8.7711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    41.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10169        7.6517        .52165E-01   -1.5644    
  12  norm          .10000E-03    1.9975        .10163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    51.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    64.691        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.8970        22.033        .18156E-03   -1.5265    
  16  norm          2.4257        5.1608        .20881E-03   -1.5396    
  17  norm          .10000E-03    4.6301        .15518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.4883        4.3940        .11148E-03   -1.5161    
  19  norm          .10000E-03    2.0409        .10297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.1219        .76080E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.8081        .15804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    14.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.9923        14.321        .12669E-03   -1.5076    
  24  Prefactor     4.8146        183.63        .18314E-03   -1.5269    
  25  Normalizat    1.0487        .21100        .21985E-03   -.91416    
  26  Prefactor     .82907        .24131        .29489E-03   -.98666    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49572e-09
Minuit parameter uncertainties:
  1  41.4627
  2  0.000422448
  3  3.78655
  4  12.5277
  5  2.1804
  6  3.00683
  7  1.5354e-05
  8  3.09622e-06
  9  1.74907e-05
  10  1.07111e-05
  11  1.76358
  12  2.07724e-06
  13  6.5964e-05
  14  0.000160747
  15  20.7871
  16  5.16178
  17  2.22498e-06
  18  4.39421
  19  8.3233e-06
  20  2.54646e-06
  21  9.70871e-06
  22  7.25256e-06
  23  14.326
  24  59.6643
  25  0.211174
  26  0.241619
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.749e-05  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.291e-01  2.416e-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.049e+00  2.112e-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: 4.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/937227/likelihoodResults_381110401_381369601_4FGL_J1249.8+3707_daily_bin547.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) = 5455.39535144
delta logL = -0.000370905075215

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5455.39498054
delta logL = -7.0303940447e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7849       1.0000          .0000       10.000    
     3 'Normalizat'    1.0487       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82906       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=   5455.395     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      208 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.8436        .90712E-02** at limit **
   2  Index         1.7896        7.7971        .50000       -.27320E-05
   3  Normalizat    1.0487        .25529E-02    .40642E-01    .37604E-05
   4  Prefactor     .82906        .30966E-02    .66661E-01    .14873E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.7896
  Normalizat = 1.04873
  Prefactor  = 0.829062
 **********
 **   18 **HESSE 
 **********

 FCN=   5455.395     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      241 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    54.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7896        6.0883        .50000       -.69721    
   3  Normalizat    1.0487        .85878E-02    .21985E-03   -.91415    
   4  Prefactor     .82906        .10404E-01    .29490E-03   -.98666    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.138e-09
Minuit parameter uncertainties:
  1  1.1872e-07
  2  118.549
  3  0.00858782
  4  0.0104039
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937227': 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) = 5455.39498053
delta logL = 7.2323018685e-09

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.187e-07  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.790e+00  1.185e+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:  8.291e-01  1.040e-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.049e+00  8.588e-03  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/937227/cmap_HighResolution_381110401_381369601_4FGL_J1249.8+3707_daily_bin547.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.12e-03', job_status='DONE', photon_flux_upper_limit='4.24e-08', time_completed='2021-09-06 06:50:20.931555', job_id='937227', GAL2='0.83', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1630936220.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='7.23e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='547' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:50:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 937227: <4FGL_J1249.8+3707_daily_bin547> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin547 192.46 37.1306 381110401 381369601 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 :                                   709.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            885 sec.

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

