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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin809
RA = 192.46, Dec = 37.1306
tmin = 449020801, tmax = 449280001
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='938741', job_status='RUN', time_executed='2021-09-06 06:44:08.601847', time_epoch_executed='1630935848.6' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='809'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938741

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938741/ft1_4FGL_J1249.8+3707_daily_bin809.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938741/ft2_4FGL_J1249.8+3707_daily_bin809.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938741/ft1_4FGL_J1249.8+3707_daily_bin809.fits outfile=/scratch/kocevski/938741/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin809.fits ra=192.46 dec=37.1306 rad=12.0 tmin=449020801.0 tmax=449280001.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.51
user 5.27
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/938741/ft1_filtered_4FGL_J1249.8+3707_daily_bin809.fits" evtable="EVENTS" scfile=/scratch/kocevski/938741/ft2_4FGL_J1249.8+3707_daily_bin809.fits sctable="SC_DATA" outfile=/scratch/kocevski/938741/ltcube_449020801_449280001_4FGL_J1249.8+3707_daily_bin809.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/938741/ft2_4FGL_J1249.8+3707_daily_bin809.fits
.....................!
real 11.96
user 11.60
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938741/ft1_filtered_4FGL_J1249.8+3707_daily_bin809.fits evtable="EVENTS" scfile=/scratch/kocevski/938741/ft2_4FGL_J1249.8+3707_daily_bin809.fits sctable="SC_DATA" expcube=/scratch/kocevski/938741/ltcube_449020801_449280001_4FGL_J1249.8+3707_daily_bin809.fits outfile=/scratch/kocevski/938741/expmap_449020801_449280001_4FGL_J1249.8+3707_daily_bin809.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/938741/ltcube_449020801_449280001_4FGL_J1249.8+3707_daily_bin809.fits
.....................!
real 189.92
user 185.46
sys 4.07

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/938741/ft1_filtered_4FGL_J1249.8+3707_daily_bin809.fits scfile=/scratch/kocevski/938741/ft2_4FGL_J1249.8+3707_daily_bin809.fits outfile=/scratch/kocevski/938741/cmap_449020801_449280001_4FGL_J1249.8+3707_daily_bin809.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.70
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/938741/ft1_filtered_4FGL_J1249.8+3707_daily_bin809.fits scfile=/scratch/kocevski/938741/ft2_4FGL_J1249.8+3707_daily_bin809.fits outfile=/scratch/kocevski/938741/cmap_HighResolution_449020801_449280001_4FGL_J1249.8+3707_daily_bin809.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.89
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    61.766       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    11.464       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .68602       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.8756       1.0000         .10000E-03   10000.    
     8 'Prefactor '    63.285       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.973       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.3750       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    14.110       1.0000         .10000E-03   10000.    
    17 'norm      '    4.6003       1.0000         .10000E-03   10000.    
    18 'norm      '    13.685       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    78.259       1.0000         .10000E-03   10000.    
    23 'Prefactor '    39.985       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4072       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .66861       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=   4405.476     FROM MIGRAD    STATUS=CONVERGED    603 CALLS     3069 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     61.750        58.811       -.15596E-04   -.34857E-05
   2  Prefactor     .10000E-03    18.901       -.24288E-05** at limit **
   3  norm          11.464        4.4072       -.86578E-07    .76762E-04
   4  Prefactor     .10000E-03    4.5316        .27868E-07** at limit **
   5  Prefactor     .10000E-03    1.0402        .10613E-06** at limit **
   6  Prefactor     .68574        2.2959       -.71156E-06   -.96490E-03
   7  Prefactor     8.8748        10.709       -.43293E-07    .21978E-05
   8  Prefactor     63.284        37.846       -.10142E-05   -.12498E-05
   9  Prefactor     19.956        28.314       -.89759E-05   -.70908E-05
  10  Prefactor     .10000E-03    84.228       -.30297E-04** at limit **
  11  Prefactor     .10000E-03    7.1907       -.49414E-06** at limit **
  12  norm          5.3754        4.9001        .22221E-05    .10647E-03
  13  Prefactor     .10000E-03    37.644       -.31676E-05** at limit **
  14  Prefactor     .10000E-03    9.8463       -.22758E-05** at limit **
  15  Prefactor     .10000E-03    14.569        .53394E-05** at limit **
  16  norm          14.116        8.2169       -.38249E-06   -.16881E-04
  17  norm          4.6000        16.491       -.54877E-06   -.48825E-04
  18  norm          13.687        6.1675        .67573E-07    .35449E-03
  19  norm          .10000E-03    12.804       -.36109E-05** at limit **
  20  Prefactor     .10000E-03    5.8893       -.66124E-06** at limit **
  21  Prefactor     .10000E-03    8.9971        .26439E-05** at limit **
  22  Prefactor     78.278        99.608        .20246E-04    .13276E-05
  23  Prefactor     39.986        29.820       -.28129E-06   -.36943E-05
  24  Prefactor     .10000E-03    71.119        .29198E-04** at limit **
  25  Normalizat    1.4070        .23005       -.35630E-06    .56429E-04
  26  Prefactor     .66899        .27428        .95702E-06   -.42463E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 61.7499
  Prefactor  = 0.0001
  norm       = 11.4636
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.685737
  Prefactor  = 8.87485
  Prefactor  = 63.284
  Prefactor  = 19.9562
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.37543
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.1155
  norm       = 4.59999
  norm       = 13.6872
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 78.2781
  Prefactor  = 39.9858
  Prefactor  = 0.0001
  Normalizat = 1.40696
  Prefactor  = 0.668995
 **********
 **   18 **HESSE 
 **********

 FCN=   4405.476     FROM HESSE     STATUS=OK           452 CALLS     3521 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     61.750        58.785        .25528E-03   -1.4135    
   2  Prefactor     .10000E-03    18.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.464        4.3714        .81684E-04   -1.5031    
   4  Prefactor     .10000E-03    4.5881        .13798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.0420        .66030E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .68574        2.2524        .17313E-03   -1.5542    
   7  Prefactor     8.8748        10.685        .13454E-03   -1.5112    
   8  Prefactor     63.284        37.862        .50443E-04   -1.4115    
   9  Prefactor     19.956        28.297        .89622E-04   -1.4814    
  10  Prefactor     .10000E-03    84.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.2735        .17359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.3754        4.9013        .13555E-03   -1.5244    
  13  Prefactor     .10000E-03    37.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.8511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          14.116        8.2083        .10663E-03   -1.4956    
  17  norm          4.6000        16.480        .18766E-03   -1.5279    
  18  norm          13.687        6.1245        .10476E-03   -1.4968    
  19  norm          .10000E-03    12.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.0548        .31318E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.9904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     78.278        99.194        .45395E-04   -1.3936    
  23  Prefactor     39.986        29.821        .63389E-04   -1.4442    
  24  Prefactor     .10000E-03    70.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.4070        .26933        .23290E-03   -.80427    
  26  Prefactor     .66899        .31729        .38407E-03   -1.0475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17353e-09
Minuit parameter uncertainties:
  1  58.8402
  2  8.29157e-06
  3  4.37149
  4  1.98887e-06
  5  2.02739e-06
  6  2.25267
  7  10.6878
  8  37.8765
  9  28.3157
  10  0.000114072
  11  7.83753e-05
  12  4.90162
  13  8.10841e-06
  14  1.11851e-05
  15  2.02267e-06
  16  8.20891
  17  16.4961
  18  6.12475
  19  5.74475e-05
  20  0.000230338
  21  6.64547e-05
  22  99.4042
  23  29.8325
  24  0.000100416
  25  0.269599
  26  0.31815
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.996e+01  2.832e+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:  6.690e-01  3.181e-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.407e+00  2.696e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/938741/likelihoodResults_449020801_449280001_4FGL_J1249.8+3707_daily_bin809.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) = 4405.33850479
delta logL = 0.137565461088

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4405.3309841
delta logL = 0.145086149456

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.357       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1750       1.0000          .0000       10.000    
     3 'Normalizat'    1.3966       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67282       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4405.331     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      310 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.323        30.027        .59440E-03   -.36149E-05
   2  Index         2.1756        .98416        .57744E-02    .44416E-03
   3  Normalizat    1.3961        .26685        .23362E-03    .32205E-04
   4  Prefactor     .67439        .31582        .38252E-03    .20953E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.3233
  Index      = 2.17564
  Normalizat = 1.39615
  Prefactor  = 0.674393
 **********
 **   18 **HESSE 
 **********

 FCN=   4405.331     FROM HESSE     STATUS=OK            25 CALLS      335 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.323        24.334        .23776E-04   -1.5035    
   2  Index         2.1756        .79984        .11549E-02   -.60028    
   3  Normalizat    1.3961        .26633        .46724E-04   -.80740    
   4  Prefactor     .67439        .31518        .15301E-04   -1.0454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47622e-12
Minuit parameter uncertainties:
  1  24.3553
  2  0.804934
  3  0.266595
  4  0.316017
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938741': 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) = 4405.33095599
delta logL = 0.145114264364

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.132e+01  2.436e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  2.176e+00  8.049e-01  0.000e+00  1.000e+01 (-1.000e+00)
315        Scale:  4.011e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  6.744e-01  3.160e-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.396e+00  2.666e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.70
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/938741/cmap_HighResolution_449020801_449280001_4FGL_J1249.8+3707_daily_bin809.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.28e-03', job_status='DONE', photon_flux_upper_limit='8.54e-08', time_completed='2021-09-06 06:54:58.345152', job_id='938741', GAL2='0.67', fit_tolerance='1e-08', EG2='1.40', EG='1.41', time_epoch_completed='1630936498.35', return_code2='0', ts='0.70', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='1.45e-01', ts2='0.98', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='809' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:54:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 938741: <4FGL_J1249.8+3707_daily_bin809> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin809> 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) <bullet0264>, 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:54:59 2021
Results reported at Mon Sep  6 06:54:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin809 192.46 37.1306 449020801 449280001 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 :                                   645.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            867 sec.

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

